<?php

return array(

	'defaultController'=>'system/home',
	
	'import'=>array(
		'application.extensions.*',
		'application.models.*',
		'application.extensions.yii-mail.*',
	),
	
	'modules'=>array(
		'system'=> array('defaultController' => 'home'),
		'config'=>array('defaultController' => 'company'),
		'app'=>array('defaultController' => 'uploader'),
		'content'=>array( 'defaultController' => 'article'),
		'sale'=>array( 'defaultController' => 'product'),
	),


	'components'=>array(
	
		'db'=>array(
			'class'=>'CDbConnection',
			'connectionString'=>'mysql:host='.HOST_NAME.';dbname='.DB_NAME,
			'username'=>USER_NAME,
			'password'=>PASS_WORD,
			'emulatePrepare'=>true, // neededbysomeMySQLinstallations
		),
		
		'mail' => array(
 			'class' => 'ext.yii-mail.YiiMail',
 			'transportType' => 'php',
 			'viewPath' => 'application.views.mail',
 			'logging' => true,
 			'dryRun' => false
 		),
		
	),
);